<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set value="<%=request.getContextPath()%>" var="ctx"></c:set>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>网站后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="${ctx}/resources/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="${ctx}/resources/lhgdialog/skins/iblue.css">
	<script type="text/javascript" src="${ctx}/resources/easyui/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="${ctx}/resources/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="${ctx}/resources/lhgdialog/lhgdialog.min.js"></script>
	<script type="text/javascript" src="${ctx}/resources/admin/js/product/product-main.js"></script>
  </head>
  <script type="text/javascript">
	var ctx = "${ctx}";
	var imagetoolbar = [{
		text: '添加图片',
		iconCls: 'icon-add',
		handler: onAddImage
	}, {
		text: '删除图片',
		iconCls: 'icon-remove',
		handler: onDelImage
	}];
  </script>
  <body class="easyui-layout">
		<div data-options="region:'west'" style="width:200px;">
			<ul id="tree-cate"></ul>
		</div>
		<div data-options="region:'center'">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'">
					<table class="easyui-datagrid" id="grid-product" data-options="rownumbers:true,pagination:true,url:'list.htm',fit:true,singleSelect:true">
						<thead>
							<tr>
								<th data-options="field:'product_name',width:300,align:'left'">产品名称</th>
               			 		<th data-options="field:'product_editor',width:100,align:'left'">上传者</th>  
              					<th data-options="field:'insert_time',width:200,align:'left'">添加时间</th>  
               					<th data-options="field:'product_views',width:100,align:'left'">浏览次数</th>  
                				<th data-options="field:'is_hot',width:80,align:'center'">hot</th>  
               					<th data-options="field:'is_top',width:80,align:'center'">top</th>
							</tr>
						</thead>
					</table>
				</div>
				<div data-options="region:'south'" style="height:200px;">
					<div class="easyui-layout" data-options="fit:true">
						<div data-options="region:'west'" style="width:200px;height:200px;" id="image-default"></div>
						<div data-options="region:'center'" style="height:300px;">
							<table class="easyui-datagrid" id="grid-image" data-options="rownumbers:true,toolbar:imagetoolbar,pagination:true,fit:true">
								<thead>
									<tr>
										<th data-options="field:'image_editor',width:300,align:'left'">上传者</th>
		               			 		<th data-options="field:'add_time',width:100,align:'left'">添加时间</th>  
		              					<th data-options="field:'image_sort',width:200,align:'left'">排序</th>  
		               					<th data-options="field:'is_rotate',width:100,align:'left'">首页滚动</th>
									</tr>
								</thead>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
  </body>
</html>
